Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-89914: Make the oparg of the YIELD_VALUE instruction equal the stack depth. #92960

Merged
merged 2 commits into from
May 19, 2022

Conversation

markshannon
Copy link
Member

@markshannon markshannon commented May 19, 2022

A small change. Sets the oparg of YIELD_VALUE to be the stack depth.
This is an enabler of faster-cpython/ideas#111 (comment)
It does have some merit by itself, as an additional sanity check for debug builds.

@markshannon markshannon merged commit 3fd8610 into python:main May 19, 2022
@markshannon markshannon deleted the yield-oparg-depth branch September 26, 2023 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants